package com.hmall.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

//当前类是Feign接口,主要作用是用来远程调用商品微服务
@FeignClient(value = "pay-service")
public interface PayClient {

    @PutMapping("/pay-orders/{id}")
    void upload(@PathVariable("id") Long id);
}
